package com.ah.suams.dao;

import com.ah.suams.bean.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MemberDao {

    Member member(String id);

    List<Member> memberList(@Param("id") String id,@Param("name") String name,@Param("dept") String dept);

    int updateMember(@Param("id")String id,@Param("password")String password,@Param("name")String name,
                     @Param("sex")String sex,@Param("birthday")String birthday,@Param("jointime")String jointime,
                     @Param("phone")String phone,@Param("email")String email,@Param("dept")String deptId,@Param("job")String jobId);

    int insertMember(@Param("id")String id,@Param("password")String password,@Param("name")String name,
                  @Param("sex")String sex,@Param("birthday")String birthday,@Param("jointime")String jointime,
                  @Param("phone")String phone,@Param("email")String email,@Param("dept")String deptId,@Param("job")String jobId);

    int deleteMember(String id);
}
